package com.itic.appbase.framework.type;

public enum SkuType {

	color("颜色","color"),brand("套餐","brand"),size("尺寸","size");
	private String name;
	private String value;
	SkuType(String name, String value) {
		this.name = name;
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	public static SkuType getSkuType(String type) {
		SkuType skuType = null;
		switch (type) {
		case "颜色":
			skuType = SkuType.color;
			break;
		case "尺寸":
			skuType = SkuType.size;
			break;
		case "套餐":
			skuType = SkuType.brand;
			break;
		default:
			break;
		}
		return skuType;
	}
	
}
